package org.belkodevelop.announcement.dto;

import org.belkodevelop.announcement.domain.OperationEnum;
import org.belkodevelop.realty.dto.RealtyDto;

import java.io.Serializable;
import java.util.Date;

/**
 * @author VMozolev
 */
public class AnnouncementDto implements Serializable {

    private long id;
    private Float price;
    private Date datePublication = new Date();
    private RealtyDto realty;
    private OperationEnum operation;
    private boolean status;
    private int rating;

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Float getPrice() {
        return price;
    }

    public void setDatePublication(Date date) {
        this.datePublication = date;
    }

    public Date getDatePublication() {
        return datePublication;
    }

    public RealtyDto getRealty() {
        return realty;
    }

    public void setRealty(RealtyDto realty) {
        this.realty = realty;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean getStatus() {
        return status;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public OperationEnum getOperation() {
        return operation;
    }

    public void setOperation(OperationEnum operation) {
        this.operation = operation;
    }
}
